package bg.tu.varna.pms.model.communication;

import java.io.Serializable;
import java.util.UUID;

import bg.tu.varna.pms.model.LoginLocation;

public final class LogoutMessage {
	private LogoutMessage() {
	}

	public final static class Request implements Serializable {
		private static final long serialVersionUID = 2082378455605161531L;
		private UUID mSessionID;
		private String mUsername;

		public UUID getSessionID() {
			return mSessionID;
		}

		public Request setSessionID(UUID sessionID) {
			mSessionID = sessionID;
			return this;
		}

		public String getUsername() {
			return mUsername;
		}

		public Request setUsername(String username) {
			mUsername = username;
			return this;
		}
	}

	public final static class Response implements Serializable {
		private static final long serialVersionUID = -7806873401391624021L;
		private final LoginLocation mLocation;

		public Response(LoginLocation location) {
			mLocation = location;
		}
		
		public Response()
		{
			mLocation = null;
			//Nqkakyv defolten konstruktor bez toq lokeishyn, za pisaneto ot mnogo mesta :) 
		}

		public LoginLocation getLocation() {
			return mLocation;
		}
	}
}
